import http from '@/utils/request.js'

export default {
    list: {
        name: '获取动作素材列表',
        url: `${import.meta.env.VITE_API_URL}/motion-material/list`,
        async get (data) {
            return await http.get(this.url, data)
        }
    },

    add: {
        name: '添加动作素材',
        url: `${import.meta.env.VITE_API_URL}/motion-material/add`,
        async post (data) {
            return await http.post(this.url, data)
        }
    },

    update: {
        name: '更新动作素材',
        url: `${import.meta.env.VITE_API_URL}/motion-material/update`,
        async post (data) {
            return await http.post(this.url, data)
        },
    },

    delete: {
        name: '删除动作素材',
        url: `${import.meta.env.VITE_API_URL}/motion-material/delete`,
        async post (data) {
            return await http.post(this.url, data)
        }
    },
}
